from collections import Iterable

def demoFunc1():
	yield 1
	yield 2
	yield 3
	yield 4
	yield 5

print(isinstance(demoFunc1(),Iterable))
#输出：True

for x in demoFunc1():
    print(x)
	
print(demoFunc1().__next__())
#输出：
#1
print(demoFunc1().__next__())
#输出：
#1

temp1 = demoFunc1();
print(temp1.__next__())
#输出：
#1
print(temp1.__next__())
#输出：
#2
print(temp1.__next__())
#输出：
#3
